<?php
        
for($i=0; $i<count($this->news); ){
    $newsObj = $this->news[$i];
?>
<div class="news-hot">
  <p class="news-subject"><a href="http://blog.tamtay.vn/<?php echo $newsObj->username;?>/blog/entry/<?php echo $newsObj->nid;?>" class="title_entry" target="_blank"><?php print htmlspecialchars($newsObj->title); ?></a></p>
    <p class="news-time"><?php print date("H:i", $newsObj->changed); ?> ngày <?php print date("d/m/Y", $newsObj->changed); ?></p>
    <p class="news-short">
    <?php 
        $tags_allow = "<br>";
        $newsObj->description = trim(strip_tags($newsObj->description, $tags_allow));
        print truncate_utf8($newsObj->description, 500, TRUE, TRUE); 
    ?>
    </p>
</div>
<?php
    if(++$i % 2 == 0)
        echo "<div class=\"clear\"></div>";
}
?>